package com.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.util.Date;

/* 读取表结构信息 */
public class Insurance extends BaseEntity{
    
    public Insurance() {

    }
    
    /* 序号  */
    private String id;
    /* 名称  */
    private String name;
    /* 价格  */
    private BigDecimal price;
    /* 投保车辆  */
    private String car;
    /* 车牌号  */
    private String carNo;
    /* 购买时间  */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")        
    private Date createDate;
    /* 到期时间  */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")        
    private Date endDate;
    private String userId;
    private String color;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date carDate;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getId() {
        return this.id;
    }
    public String getName() {
        return this.name;
    }
    public BigDecimal getPrice() {
        return this.price;
    }
    public String getCar() {
        return this.car;
    }
    public String getCarNo() {
        return this.carNo;
    }
    public Date getCreateDate() {
        return this.createDate;
    }
    public Date getEndDate() {
        return this.endDate;
    }
   
    public void setId(String id) {
        this.id = id;
    }
    public void setName(String name) {
        this.name = name;
    }
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    public void setCar(String car) {
        this.car = car;
    }
    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Date getCarDate() {
        return carDate;
    }

    public void setCarDate(Date carDate) {
        this.carDate = carDate;
    }
}